# Maintainer : Justin "juster" Davis <jrcd83@gmail.com>
# Generator  : pbjam 0.01
# $Id: PKGBUILD 180343 2013-03-20 16:37:13Z eric $

pkgname=perl-http-daemon
pkgver=6.01
pkgrel=1
pkgdesc="a simple http server class"
arch=(any)
license=(PerlArtistic GPL)
options=('!emptydirs')
depends=('perl>=5.8.8' 'perl-http-date>=6' 'perl-http-message'
	 'perl-lwp-mediatypes>=6')
conflicts=('perl-libwww<6')
url=http://search.cpan.org/dist/HTTP-Daemon
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Daemon-$pkgver.tar.gz)
md5sums=('ed0ae02d25d7f1e89456d4d69732adc2')
_distdir="${srcdir}/HTTP-Daemon-$pkgver"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor"     \
      PERL_MB_OPT="--installdirs vendor" \
      MODULEBUILDRC=/dev/null

    cd "$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    cd "$_distdir"
    make test
  )
}

package() {
    cd "$_distdir"
    make DESTDIR="$pkgdir" install
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
